/*
 * ShopCategoryContract.java
 * business
 *
 * Created by ChenTao on 2016/10/25.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.shopdetail.category;

import android.os.Bundle;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.data.bean.Tag;
import com.yidiandao.business.data.event.RefreshShopCategoryStateEvent;
import com.yidiandao.business.data.response.QueryShopCategoryResponse;
import com.yidiandao.business.ui.widget.view.TagView;

import java.util.List;

/** 店铺分类契约类 */
public interface ShopCategoryContract {

    interface Presenter extends BasePresenter {

        void bundleSupplierId(Bundle bundle);

        void loadShopCategoryList();

        void onCategoryItemClick(int position);

        void toShopCategoryGoodsActivity(TagView tagView);
    }

    interface View extends BaseView<Presenter> {

        void setCategoryData(List<QueryShopCategoryResponse.ShopCategory> categoryData);

        void setTagLayoutData(List<Tag> tags);

        void toShopCategoryGoodsActivity(String categoryName, String supplierId, String categoryId);

        void onEventMainThread(RefreshShopCategoryStateEvent event);

        void notifyDataSetChanged();
    }
}
